package com.xx.springboot.designPattern.StrategyPattern;

/**
 * Created by xiaoxiunique on 2018-11-13.
 */
public class test {

    public static void main(String[] args) {
        Duck duck =  new MallardDuck();
        duck.performFly();
        duck.performQuack();
        duck.setFlyBehavior(new FlyWithWings());
        duck.performFly();
    }
}
